﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Common.Dto
{
    public class BatchIntIdDto
    {
        public int? Id { get; set; }
        private List<int> ids { get; set; }
        public List<int> Ids
        {
            get
            {
                if (Id != null)
                {
                    return new List<int> { (int)Id };
                }
                return ids;
            }
            set
            {
                ids = value;
            }
        }

        public BatchIntIdDto()
        {
            Ids = new List<int>();
        }
    }

    public class BatchlongIdDto
    {
        public long? Id { get; set; }
        private List<long> ids { get; set; }
        public List<long> Ids
        {
            get
            {
                if (Id != null)
                {
                    return new List<long> { (long)Id };
                }
                return ids;
            }
            set
            {
                ids = value;
            }
        }

        public BatchlongIdDto()
        {
            Ids = new List<long>();
        }
    }
}
